var config = {
    /**
     * 增删改查，api地址
     * @total 获取总条数api
     * @get   获取数据api
     * @edit  修改数据api
     *
     * model        类名
     * action       方法名 
     */
    set_url: {
        "total": { model: "goods", action: "get_goods_total" },
        "get": { model: "goods", action: "get_goods_all" },
        "edit": { model: "goods", action: "on_goods_edit" }
    },


    /**
     * 筛选配置
     * @type {Array}
     */
    select: [
        [{
            label: "",
            type: "daterange",
            field: "date",
            range: "至",
            start: "请输入开始日期",
            end: "请输入结束日期",
            span: 6,
        }, {
            label: "",
            type: "select",
            field: "user",
            placeholder:"请选择用户",
            span: 6,
            option: [{
                value: 'all',
                label: "所有用户",
            }, {
                value: 'xxx',
                label: "xxx",
            }]
        }, {
            label: "",
            type: "select",
            field: "user",
            placeholder:"请选择操作",
            span: 6,
            option: [{
                value: 'all',
                label: "所有操作",
            }, {
                value: 'add',
                label: "添加会员",
            }, {
                value: 'del',
                label: '删除会员',
            }]
        }, {
            label: "",
            type: "input",
            field: "date",
            placeholder: "请输入日志内容",
            span: 6,
        }],
    ],

    /**
     * 表格配置
     * @type {Boolean}
     */
    selection: false,
    model: 'input',
    table: [{
        label: "日期",
        type: "input",
        field: "log_date",
        labelWidth: 140,
        sortable: false,
        amend: false,
    }, {
        label: "用户名",
        type: "input",
        field: "log_name",
        labelWidth: 120,
        sortable: false,
        amend: false,
    }, {
        label: "姓名",
        type: "input",
        field: "log_username",
        labelWidth: 120,
        sortable: false,
        amend: false,
    }, {
        label: "操作类型",
        type: "input",
        field: "log_type",
        labelWidth: 180,
        sortable: false,
        amend: false,
    }, {
        label: "日志",
        type: "input",
        field: "logs",
        labelWidth: 200,
        sortable: false,
        amend: false,
    }, {
        label: "IP",
        type: "input",
        field: "log_ip",
        labelWidth: 160,
        sortable: false,
        amend: false,
    }],

    page: {
        size: 10,
        current: 1,
        total: 100
    }
}

export default config;